<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 200px;
            height: 200px;
        }
        
        .box1 {
            background-color: yellowgreen;
            position: relative;
            /* position: absolute; */
            left: 50px;
            top: 100px;
            /* right: 100px;
            bottom: 100px; */
            /* z-index: -1; */
        }
        
        .box2 {
            background-color: aqua;
        }
    </style>
</head>

<body>
    <div class="box1">相对定位的盒子相对正常位置进行偏移，偏移后仍然保留偏移前所占空间</div>
    <div class="box2"></div>
</body>

</html>